package com.zzb.weikeautosign;

import com.zzb.weikeautosign.socket.SocketService;
import com.zzb.weikeautosign.taskmanage.TaskManage;
import com.zzb.weikeautosign.threadpool.ThreadQueue;
import org.apache.log4j.Logger;

/**
 * 主入口
 * Created by zzb on 16/1/22.
 */
public class Main {
    private static final Logger logger = Logger.getLogger(Main.class);

    public static void main(String[] args) {
        //开启终端交互支持
        // ConsoleThread.getInstance().execute();
        // logger.info("终端交互启动成功");
        //计时任务启动
        TaskManage.start();
        logger.info("计时任务启动成功");
        //线程池启动
        ThreadQueue.getInstances().execute();
        logger.info("线程池启动成功");
        //socket端口服务器启动
        SocketService.getInstance().execute();
        logger.info("socket监听服务启动成功");
    }
}
